﻿<%namespace YouHP.Model%>
<%namespace YouHP.Utility%>
<%template _header%>

<div class="layout-cols2">
	
	
	<%csharp%>if( IsPost){ <%/csharp%>
    
    <%template _MsgBox%>
    
    <%csharp%> } else { <%/csharp%>
    
    <div class="box">
        <div class="caption">
            修改回复
        </div>
        <div class="content">
            <br />
            <%csharp%>TempUrl = "/Profile/CommentEdit.aspx"; <%/csharp%>
            <form id="commentform" name="commentform" method="post" action="{this.GetUrl(TempUrl)}">
                <input type="hidden" name="id" value="{CommentData.Id}" />
	           <div id="plshow">
	           <div class="bor"> 
                    <textarea name="msg" cols="110" rows="6" id="msg" class="rev_textarea">{CommentData.Body}</textarea>
               </div>
               &nbsp;&nbsp;请文明参与讨论，禁止漫骂攻击。
               <input name="sb" type="button" value="修改" class="btn" onClick='SubmitCommentForm();' />
               </div>
            </form>
            <script type="text/javascript">
                function SubmitCommentForm()
                {
                    var msg = _$('msg').value.trim();
                    if(msg.length < 2) {
                        window.alert('评论内容长度不能小于 2 ');
                        return;
                    }
                    _$('commentform').submit();
                }
            </script>
            <br />
        </div>
    </div>
    
    <%csharp%> } <%/csharp%>
		

	
</div>

<%template _footer%>